package demo.mapper;

import demo.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper {
    @Select("select * from spring.user where username = #{username} and password = #{password}")
    User isUser(User user);
    @Select("select * from user where id = #{id}")
    User searchUserById(Integer id);
}
